package com.hiwetop.cp;

import com.google.inject.Guice;
import com.google.inject.Injector;
import me.chanjar.weixin.common.exception.WxErrorException;

/**
 * Created by linyu on 2016/12/7.
 */
public class Client {
    public static void main(String[] args) throws WxErrorException {
        Injector injector = Guice.createInjector(new ConfigModule());
        WxCpBaseAPI api = new WxCpBaseAPI();
        injector.injectMembers(api);
        api.getDepts();
    }
}
